package com.nbufe.strategy.demo2;

/**
 * @Author Zan
 * @Create 2024/5/20 8:49
 * @ClassName: BusStrategy
 * @Description : TODO 请用一句话描述该类的功能
 */
public class BusStrategy extends TravelStrategy {
    @Override
    double calculate(int nums, int hours) {
        if (hours != 24) {
            return hours * 300;
        }
        return 1500;
    }
}
